const should = require('should');
const home = require('../models/home');

suite('home-unit-tests', function () {
    test('home object', function (done) {
        home.should.have.property('title').eql('欧洲城堡|主面');
        home.should.have.property('menu').length(5);
        home.should.have.property('developcode').length(12);
        home.menu[0].should.be.type('object');
        var first = home.developcode[0];
        first.should.be.type('object');
        first.should.have.property('chinese').be.equal('德国新天鹅城堡');
        first.should.have.property('english').be.equal("Gremany's New Swan Castle");
        first.should.have.property('route').be.equal("/gremany's-new-swan-castle");
        done();
    });
});